#!/bin/bash




for (( i=0;i<=100;i++ )) ; do
  if [ $[$i%2] -eq 1  ] ;then
   arr[$[$[$i-1]/2]]=$i
  fi

done

echo ${arr[*]}



for ((i=0;i<=100;i++)) ;  do
  if [[  $i%2 -eq 1  ]] ;then
   arr[  ($i-1)/2    ]=$i
  fi

done
echo ${arr[*]}










result=()

count=0 ;
for ((i=0;  i<100 ; i++ )); do


    if [[  $(($i % 2))  -ne    0 ]] ; then

        let  $count++
        result[count]=$i

    fi



done

echo  "${result[*]} "

